class ExamHistory {
  String examId;
  String examName;
  DateTime submitPaperTime;
  double score;

  ExamHistory({this.examId, this.examName, this.submitPaperTime, this.score});

  factory ExamHistory.fromJson(Map<String, dynamic> json) {
    return ExamHistory(
      examId: json['examId'],
      examName: json['examName'],
      score: json['score'],
      submitPaperTime: json['submitPaperTime'] == null ? null : DateTime.parse(json['submitPaperTime']),
    );
  }
}
